package com.fary.expression.spel.support;

import com.fary.core.SpringException;
import com.fary.expression.Operation;
import com.fary.expression.OperatorOverloader;

public class StandardOperatorOverloader implements OperatorOverloader {

    @Override
    public boolean overridesOperation(Operation operation, Object leftOperand, Object rightOperand) throws SpringException {
        return false;
    }

    @Override
    public Object operate(Operation operation, Object leftOperand, Object rightOperand) throws SpringException {
        throw new SpringException("No operation overloaded by default");
    }

}